package com.shycloud.mido.member.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
    * 教师上课前临时课件表
    */
@Data
@TableName(value = "sm_courseware_temp")
public class SmCoursewareTemp {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 课件名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 教师ID
     */
    @TableField(value = "teacher_id")
    private String teacherId;

    /**
     * 学生ID
     */
    @TableField(value = "student_id")
    private String studentId;

    /**
     * 类型： 1.曲目  2.视频 3.图片
     */
    @TableField(value = "`type`")
    private String type;

    /**
     * 类型为曲目所关联的曲目id
     */
    @TableField(value = "music_id")
    private Integer musicId;

    /**
     * 类型为图片所存储的地址
     */
    @TableField(value = "img_url")
    private String imgUrl;

    /**
     * 类型为视频所存储的地址
     */
    @TableField(value = "mp4_url")
    private String mp4Url;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_TEACHER_ID = "teacher_id";

    public static final String COL_STUDENT_ID = "student_id";

    public static final String COL_TYPE = "type";

    public static final String COL_MUSIC_ID = "music_id";

    public static final String COL_IMG_URL = "img_url";

    public static final String COL_MP4_URL = "mp4_url";
}